Xbasic

BROWSE.VIEW Function

Syntax

as P = browse.view(C layoutname [,C style [,C windowname [,C position_x [,C position_y [,* arguments ]]]]])

Arguments

layoutname

The name of the browse to open. In the case where there are duplicate browse names in the database, you can qualify the browse name with the table name using this syntax: Browse Name@Table Name. For example, if a database has a browse called "Customers" for the "Current_Customers" and the "Past_Customers" tables, you can specify the browse as: "Customers@Current_Customers", or "Customers@Past_Customers".

style

Optional. Default = "Dialog". Determines the mode of the browse.

"Popup" = Single line display, ready to accept a new record.
"Dialog" = Display of top N records of the table.
windowname

Not applicable.

position_x

Optional. Default = "center". The horizontal position of the window. Possible values are:

"left"
"right"
"center"
"fill"
"pixel_coordinate"
position_y

Optional. Default = "center". The vertical position of the window. Possible values are:

"top"
"bottom"
"center"
"fill"
"pixel_coordinate"
arguments

*

Description

BROWSE.VIEW() opens Browse_Name, displaying all records, and returns the object pointer. See FORM.LOAD() for details.

The BROWSE.VIEWQUERIED(), introduced in V5. is more versatile than the BROWSE.VIEW() method because it allows you to specify an optional filter/order expression to select which records are displayed in the browse window.

Limitations

Desktop applications only.

See Also